package com.guage.producter.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.guage.producter.domain.SampleTable;
import com.guage.producter.domain.SampleTableExample;
import com.guage.producter.mapper.SampleTableMapper;
import com.guage.producter.service.SampleTableService;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yangdezhao
 * @since 2024-03-16
 */	
@Service
public class SampleTableServiceImpl  implements SampleTableService {
	@Autowired
	private SampleTableMapper sampleTableMapper;
	@Override
	public boolean updateSampleTableByMultipleConditions(SampleTable entity) {
		sampleTableMapper.updateSampleTableByMultipleConditions(entity);
		return true;
	}
	@Override
	public int insertSelective(SampleTable record) {
		// TODO Auto-generated method stub
		return sampleTableMapper.insertSelective(record);
	}
	@Override
	public int deleteByPrimaryKey(String id) {
		// TODO Auto-generated method stub
		return sampleTableMapper.deleteByPrimaryKey(Short.valueOf(id));
	}
	@Override
	public int updatByPrimaryKeySelective(SampleTable sampleTable) {
		// TODO Auto-generated method stub
		return sampleTableMapper.updateByPrimaryKeySelective(sampleTable);
	}
	@Override
	public int updateBatchByPrimaryKeySelective(List<SampleTable> list) {
		for(SampleTable sampleTable : list) {
			sampleTableMapper.updateByPrimaryKeySelective(sampleTable);
		}
		return 0;
	}
	@Override
	public List<SampleTable> selectByExample(SampleTableExample example) {
		sampleTableMapper.selectByExample(example);
		return null;
	}

}
